package com.stylefeng.guns.modular.netcar.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
import java.util.Date;

@Data
@TableName("dispatch_psn_org")
 /**
 * 调度员可调度车企
 *
 * @author sasazaixian
 * @Date 2018-11-15 10:28
 * @TableField(exist = false) 实现属性与数据库字段不一一对应
 */
public class DispatchPsnOrg extends Model<DispatchPsnOrg> {
    private static final long serialVersionUID = 1L;
    /**
     * 主键id
     * 自动生成后修改成实际的主键 
     */
    @TableId(value = "dpo_id", type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String dpoId;     //主键

    @Override
    protected Serializable pkVal() {
        return this.dpoId;
    }
    
    //扩展能查询字段
    @TableField(exist = false) 
    private String key ;
    //开始日期
    @TableField(exist = false)     
    private String sdate;
    //截止日期 
    @TableField(exist = false) 
	private String edate;
    //排序字段
    @TableField(exist = false) 
	private String  sortField ;
	//排序	
	@TableField(exist = false) 
	private String sortOrder;

    @TableField(exist = false)
    private String isDispatch;

    @ApiModelProperty(value = "车企Id数组")
    @TableField(exist = false)
    private String soIdArry; //车企Id数组

    @ApiModelProperty(value = "调度员ID数组")
    @TableField(exist = false)
    private String suIdArry; //调度员ID数组

    public void setKey(String key) {
		this.key = key;
	}
	public String getKey() {
		return key;
	}	
	public void setSortField(String sortField) {
		this.sortField = sortField;
	}
	public String getSortField() {
		return sortField;
	}
	public void setSortOrder(String sortOrder) {
		this.sortOrder = sortOrder;
	}
	public String getSortOrder() {
		return sortOrder;
	}
	public void setEdate(String edate) {
		this.edate = edate;
	}
	public String getEdate() {
		return edate;
	}
	public void setSdate(String sdate) {
		this.sdate = sdate;
	}
	public String getSdate() {
		return sdate;
	}	
	
	

    @ApiModelProperty(value = "调度员ID")
    @TableField("su_id")
    private Integer suId;     //调度员ID

    @ApiModelProperty(value = "车企Id")
    @TableField("so_id")
    private Integer soId;     //车企Id


    @ApiModelProperty(value = "车企名称")
    @TableField(exist = false)
    private String soName;     //车企名称

    @ApiModelProperty(value = "调度员名称")
    @TableField(exist = false)
    private String suName;     //调度员名称

    @ApiModelProperty(value = "创建人")
    @TableField("create_user")
    private String createUser;     //创建人

    @ApiModelProperty(value = "创建时间")
    @TableField("create_time")
    private Date createTime;     //创建时间

    @ApiModelProperty(value = "备注")
    @TableField("note")
    private String note;     //备注

    @ApiModelProperty(value = "调度是否审核0 不审核 1 审核")
    @TableField("dpo_need_check")
    private String dpoNeedCheck;     //调度是否审核0 不审核 1 审核

    public String getDpoId(){
        return dpoId;
    }
    public void setDpoId(String dpoId){
        this.dpoId=dpoId;
    }
    public Integer getSuId(){
        return suId;
    }
    public void setSuId(Integer suId){
        this.suId=suId;
    }
    public Integer getSoId(){
        return soId;
    }
    public void setSoId(Integer soId){
        this.soId=soId;
    }
    public String getCreateUser(){
        return createUser;
    }
    public void setCreateUser(String createUser){
        this.createUser=createUser;
    }
    public Date getCreateTime(){
        return createTime;
    }
    public void setCreateTime(Date createTime){
        this.createTime=createTime;
    }
    public String getNote(){
        return note;
    }
    public void setNote(String note){
        this.note=note;
    }
    public String getDpoNeedCheck(){
        return dpoNeedCheck;
    }
    public void setDpoNeedCheck(String dpoNeedCheck){
        this.dpoNeedCheck=dpoNeedCheck;
    }

}
